package QL;

import java.util.Map;

public class ButlerGetPlayerResourceLogRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 玩家Id
    /// </summary>
    public long UserId;

    /// <summary>
    /// 起始时间
    /// </summary>
    public String StartTime;

    /// <summary>
    /// 截止时间
    /// </summary>
    public String EndTime;

    /// <summary>
    /// 第几页？
    /// </summary>
    public long PageIndex;

    /// <summary>
    /// 每页多少条记录？
    /// </summary>
    public long PageCount;

    /// <summary>
    /// 要查看的物品名称，如果查看全部请留空
    /// </summary>
    public String ItemName;

    /// <summary>
    /// 要查看的原因，可多选用半角逗号分隔。如果查看全部请留空
    /// </summary>
    public String Reasons;

    @Override
    public String GetApiName()
    {
        return "butler.get.player.resource.log";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("user_id", String.valueOf(UserId));
        map.put("start_time", StartTime);
        map.put("end_time", EndTime);
        map.put("page_index", String.valueOf(PageIndex));
        map.put("page_count", String.valueOf(PageCount));
        map.put("item_name", ItemName);
        map.put("reasons", Reasons);
    }
}
